<?php
namespace PsiFramework\Classes\Util\Database\Query;

import("Classes.Util.Database.SqlQuery");
import("Classes.Util.Database.Query.SqlIndex");
import("Classes.Util.Database.Query.SqlPrimaryKey");
import("Classes.Util.Database.Query.SqlForeignKey");
import("Classes.Util.Database.Query.SqlUniqueKey");

use \PsiFramework\Classes\Util\Database\SqlQuery;

/**
 * PsiFramework
 * Php Simple Framework
 *
 * @author Rémi San
 * @version beta
 */

/**
 * The SqlCreateTableQuery class allows to represent a sql create trigger query
 *
 * @package Util.Database
 */
class SqlCreateTriggerQuery extends SqlQuery
{

    protected /*string*/   $_name ;
    protected /*string*/   $_triggerType ;
    protected /*string*/   $_mode ;
    protected /*SqlQuery*/ $_action ;

    /**
     * SqlCreateTriggerQuery constructor
     *
     */
    public function __construct(
        /*string*/ $name=null,
        /*string*/ $triggerType=null,
        SqlQuery   $action=null,
        /*string*/ $mode=null
    )
    {
        parent::__construct(self::$createTrigger);
        $this->_name = $name ;
        $this->_triggerType = $triggerType ;
        $this->_mode = $mode ;
        $this->_action = $action ;
    }

    public function getName()
    {
        return $this->_name ;
    }

    public function setName(/*string*/ $name)
    {
        return $this->_name = $name ;
    }

    public function getTriggerType()
    {
        return $this->_triggerType ;
    }

    public function setTriggerType(/*string*/ $triggerType)
    {
        return $this->_triggerType = $triggerType ;
    }

    public function getMode()
    {
        return $this->_mode ;
    }

    public function setMode(/*string*/ $mode)
    {
        return $this->_mode = $mode ;
    }

    public function getAction()
    {
        return $this->_action ;
    }

    public function setAction(SqlQuery $action)
    {
        return $this->_action = $action ;
    }

}

